-
Notifications
You must be signed in to change notification settings - Fork 78
Update library-redis7.0.yaml #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Vulpoi Maria-Diana <[email protected]>
| run-remote: | ||
| name: Test redis:7.0 (Remote OCI) | ||
| needs: [build, push] | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Login to OCI registry | ||
| uses: docker/login-action@v3 | ||
| with: | ||
| registry: index.unikraft.io | ||
| username: ${{ secrets.REG_USERNAME }} | ||
| password: ${{ secrets.REG_TOKEN }} | ||
|
|
||
| - name: Pull, run, validate and cleanup unikernel | ||
| run: | | ||
| set -euo pipefail | ||
| echo "Pull and start redis:7.0 unikernel" | ||
| IMAGE=index.unikraft.io/unikraft.org/redis:7.0 | ||
| docker pull "$IMAGE" | ||
| CONTAINER_ID=$(docker run --rm -d "$IMAGE") | ||
| echo "Wait and validate container startup" | ||
| sleep 5 | ||
| if ! docker ps --filter "id=$CONTAINER_ID" --format '{{.ID}}' | grep -q .; then | ||
| echo "ERROR: redis:7.0 unikernel is not running" >&2 | ||
| docker logs "$CONTAINER_ID" >&2 || true | ||
| docker stop "$CONTAINER_ID" || true | ||
| exit 1 | ||
| fi | ||
| echo "redis:7.0 unikernel started successfully" | ||
| echo "Cleanup container" | ||
| docker stop "$CONTAINER_ID" || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove the run-remote job from all PRs
| - name: Install kraft CLI | ||
| run: | | ||
| echo "deb [trusted=yes] https://deb.pkg.kraftkit.sh/ /" | sudo tee /etc/apt/sources.list.d/kraftkit.list | ||
| sudo apt-get update | ||
| sudo apt-get install -y kraftkit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the kraftkit github action so there is no need to install, like we discussed
https://github.com/marketplace/actions/build-unikernel-images-with-unikraft#use-in-github-actions
Summary
This PR adds GitHub Actions CI support for the Unikraft library package:
redis:7.0.Each workflow includes:
✅ run-local: Builds and runs the unikernel locally via QEMU
⚠️ push: Prepares OCI images for publishing (requires registry credentials)
✅ build: Matrix builds for QEMU and Firecracker (x86_64)
🕒 schedule: Runs the workflow daily via cron
Test logic performs functional checks such as:
kraft buildkraft runThis setup improves test coverage and CI reliability by ensuring that:
redis:7.0builds cleanly for both platformsNote
pushstep requiresREG_USERNAMEandREG_TOKENsecretsto be configured in the repository in order to push OCI images to
index.unikraft.io.Only local tests were verified during development.
Checklist
redis:7.0librarygit commit -s)